package com.hkts.beltweigher.opc;


import com.hkts.beltweigher.utils.redis.RedisUtils;
import org.eclipse.milo.opcua.stack.core.types.builtin.DataValue;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;

/**
 * @ClassNameDataCache
 * @Description
 * @Author yck
 * @Date12/8/2022 下午5:33
 * @Version V1.0
 **/

public class DataCache {
    public static final String ITEM="DSPDC-ITEM:";

    public static volatile List<DataValue> list = new ArrayList<>();
    //字段值数据缓存
    public static volatile Map<String, Object> ALLCACHE = new HashMap<>();
    //保存批次状态
     //key{1,2,3,4,5},value{1:启动，2，结束}
    public static volatile Map<String, String> INSTRUMENT_STATUS_CACHE= new HashMap<>();


    public static String STARTUP="1";

    public static String STOP="2";
}
